package com.zpark.transaction.api.service;

import com.shanjupay.paymentagent.api.conf.AliConfigParam;
import com.shanjupay.paymentagent.api.dto.AlipayBean;
import com.shanjupay.paymentagent.api.dto.PaymentResponseDTO;
import com.zpark.jushanpay.common.domain.BusinessException;
import com.zpark.transaction.api.dto.PayOrderDTO;
import com.zpark.transaction.api.dto.QRCodeDTO;

/**
 * 订单交易服务层接口
 */
public interface ITransactionService {

    /**
     * 生成门店二维码
     * @param dto 门店+商户+应用信息
     * @return 门店二维码入口字符串
     * @throws BusinessException
     */
    String createStoreQRCode(QRCodeDTO dto) throws BusinessException;

    /**
     * 提交订单
     * 支付宝订单保存
     * @param dto 订单对象
     * @return
     * @throws BusinessException
     */
    String submitOrderByAli(PayOrderDTO dto) throws BusinessException;

    /**
     * 根据订单号（交易号）查询订单信息
     * @param tradeNo 订单号
     * @return
     */
    PayOrderDTO queryPayOrder(String tradeNo);

    /**
     * 创建支付实体
     * @return
     */
    AlipayBean createAlipayBean();
}
